How to use BR in HTML? How is the BR tag used? What does a br tag do? Today, I will give you a good analysis of this simple and practical small label.
Syntax:
If there is a place to force a line break, we can use the BR tag.
BR Instructions for
The rule in HTML is that there is no ending character for the br, but in XHTML, the rule is that the start tag of the br is followed by the end tag. For details, see answer from stackflow:
Simply
Is sufficient.
The other forms are there for
This article mainly explains the use of the BR tag for HTML paragraph text wrapping, and in one paragraph, the correct line wrapping can make the page more beautiful. Now let's take a look at this article about HTML paragraph text wrapping.
First,
The rule in HTML is the BR empty tag, no terminator, but in XHTML, the stipulation is that the br/start tag is immediately followed by the end tag, please understand this
Answer from Stackflow: Simply is sufficient. The other forms are there
Web page
We are in the production of Web pages, we will encounter the content of text editing, and will certainly face the problem of line-wrapping. There are line-wrapping and spaces in HTML to resolve the line-wrapping problem. We have introduced
Php user-defined function br2nl converts the br line breaks in html to line breaks in text input [opposite to the nl2br function ],
This example describes how to use the php user-defined function br2nl to convert the br line breaks in html to line
Floating | tips | Web page
Let's take a look at how BR plays "clear float". Use the following code
The following is a demo of the Code effects:
Run Code Box
br Topsy clears the floating The following line uses the Effect, why not give up trying
In-depth discussion of & amp; quot; & amp; lt; br & amp; gt; & amp; quot; and & amp; q. Rn is the line feed of the output HTML code. the effect the customer sees is not line feed. The opposite is true for the br: I am content rn, I am content br, I
This article mainly introduces how to use str_replace in php to replace the br with the carriage return in the input box, and how to replace \ n with the br. For more information, see
This article describes how to use str_replace in php to replace
This tutorial aims to achieve the separation of style and behavior in lightBox, reducing JS's work in various aspects (full screen masking, select masking in ie6, bidirectional center, highly adaptive content, etc. This tutorial aims to achieve the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.